tools/hotplug/Linux: force release lock if holder process is gone (fix)
authorKouya Shimura <kouya@jp.fujitsu.com>
Wed, 15 Dec 2010 16:49:06 +0000 (16:49 +0000)
committerKouya Shimura <kouya@jp.fujitsu.com>
Wed, 15 Dec 2010 16:49:06 +0000 (16:49 +0000)
commit5d0efa621fff90f4252108dacb8155f222145c96
tree29f973f1aa5b1a4ea54ba4cf2514fc1a06d590bf
parent99b2c7638276d88b45839a22a77d94c35a5472a1
tools/hotplug/Linux: force release lock if holder process is gone (fix)

22508:57907b28e51a was unsafe for mutual exclusion.  There is a case
that the owner file doesn't exist yet when an atomic mkdir operation
fails.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/hotplug/Linux/locking.sh